﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System.Collections.Generic;
using System.Xml.Serialization;

#endregion

namespace ScrumTable.DL.Data.Common.Serialization
{
    /// <summary>
    /// Contains the properties and child elements of the DataAccessObject
    /// element. This class is needed for serialization purposes.
    /// </summary>
    [XmlType("DataAccessObject")]
    public class DataAccessObject
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// Specifies the SchemaName attribute.
        /// </summary>
        [XmlAttribute("Schema")]
        public string Schema { get; set; }

        /// <summary>
        /// Gets a list of serialized/deserialized DataObject instances.
        /// </summary>
        [XmlElement("DataObject")]
        public List<DataObject> DataObjects
        {
            get; set;
        }

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Public constructor needed for serialization facilities.
        /// </summary>
        public DataAccessObject()
        {
            DataObjects = new List<DataObject>();
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}